﻿$(document).ready(function () {
    $("#ContentPlaceHolder1_txtSearch").keydown(SubmitKeyClick);
    $("#btnCancel").click(Query_Empty);

})

function SubmitKeyClick() {
    if (event.keyCode == 13) {
        event.keyCode = 9;
        event.returnValue = false;
        $("#ContentPlaceHolder1_btnSearch").click();
    }
}

function Query_Empty() {
    $("[id$='txtSearch']").val("");
}